package com.so206.po;

import java.io.Serializable;
import java.util.Date;

public class SystemCcConfig implements Serializable {
    private Long id;

    /**
    * 状态:1.开启,0.关闭
    */
    private Integer status;

    /**
    * 时长
    */
    private Integer timeLong;

    /**
    * 请求量
    */
    private Integer reqCount;

    /**
    * 记录防御信息:0.no,1.ok
    */
    private Integer recordStatus;

    /**
    * 修改时间
    */
    private Date optTime;

    /**
    * 人机验证vid
    */
    private String capVid;

    /**
    * 人机验证key
    */
    private String capKey;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getTimeLong() {
        return timeLong;
    }

    public void setTimeLong(Integer timeLong) {
        this.timeLong = timeLong;
    }

    public Integer getReqCount() {
        return reqCount;
    }

    public void setReqCount(Integer reqCount) {
        this.reqCount = reqCount;
    }

    public Integer getRecordStatus() {
        return recordStatus;
    }

    public void setRecordStatus(Integer recordStatus) {
        this.recordStatus = recordStatus;
    }

    public Date getOptTime() {
        return optTime;
    }

    public void setOptTime(Date optTime) {
        this.optTime = optTime;
    }

    public String getCapVid() {
        return capVid;
    }

    public void setCapVid(String capVid) {
        this.capVid = capVid;
    }

    public String getCapKey() {
        return capKey;
    }

    public void setCapKey(String capKey) {
        this.capKey = capKey;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", status=").append(status);
        sb.append(", timeLong=").append(timeLong);
        sb.append(", reqCount=").append(reqCount);
        sb.append(", recordStatus=").append(recordStatus);
        sb.append(", optTime=").append(optTime);
        sb.append(", capVid=").append(capVid);
        sb.append(", capKey=").append(capKey);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SystemCcConfig other = (SystemCcConfig) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getTimeLong() == null ? other.getTimeLong() == null : this.getTimeLong().equals(other.getTimeLong()))
            && (this.getReqCount() == null ? other.getReqCount() == null : this.getReqCount().equals(other.getReqCount()))
            && (this.getRecordStatus() == null ? other.getRecordStatus() == null : this.getRecordStatus().equals(other.getRecordStatus()))
            && (this.getOptTime() == null ? other.getOptTime() == null : this.getOptTime().equals(other.getOptTime()))
            && (this.getCapVid() == null ? other.getCapVid() == null : this.getCapVid().equals(other.getCapVid()))
            && (this.getCapKey() == null ? other.getCapKey() == null : this.getCapKey().equals(other.getCapKey()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getTimeLong() == null) ? 0 : getTimeLong().hashCode());
        result = prime * result + ((getReqCount() == null) ? 0 : getReqCount().hashCode());
        result = prime * result + ((getRecordStatus() == null) ? 0 : getRecordStatus().hashCode());
        result = prime * result + ((getOptTime() == null) ? 0 : getOptTime().hashCode());
        result = prime * result + ((getCapVid() == null) ? 0 : getCapVid().hashCode());
        result = prime * result + ((getCapKey() == null) ? 0 : getCapKey().hashCode());
        return result;
    }
}